import useApiFetch from '~/hooks/useApiFetch';

export enum FeedbackType {
  SUGGESTION = 'SUGGESTION',
  BUG = 'BUG',
  OTHER = 'OTHER',
}
export interface CreateFeedBackParams {
  type: FeedbackType;
  content: string;
  contact?: string;
}

export const queryCreateFeedBack = (body: CreateFeedBackParams) => {
  return useApiFetch<ResOptions<string>>('/feedback', {
    method: 'POST',
    body,
  });
};
